// k：模块id，v：赋值函数，webpack生成的
var modules = {
  "./src/title.js":
    (module) => {
      module.exports = "title";
    }
};

// 缓存
var cache = {};

// require方法
function require(moduleId) {
  var cachedModule = cache[moduleId];
  if (cachedModule !== undefined) {
    return cachedModule.exports;
  }
  var module = cache[moduleId] = {
    exports: {}
  };
  modules[moduleId](module, module.exports, require);
  return module.exports;
}


var exports = {};
// 执行require
let title = require("./src/title.js");

console.log(title);
